package com.batchengine.util;

import com.batchengine.service.Service;

/**
 * Created by sunil.incubator@yahoo.com.
 * User: sunil.kalva
 * Date: Jul 11, 2009
 */
public abstract class Listener extends Thread {

    /**
     * Fully qualified class name
     */
    private static final String FQCN = Listener.class.getName();

    protected Service service;

    public Listener(Service service) {
        this.service = service;
    }

    protected void initService() {
        service.init(false);
    }

    abstract public void pleaseStop();
}
